I need to open each module in exclusive edit mode to update several attributes. |
Re: How to check the module is under synergy control DOORSDATA\conf\u1000001.dir In this directory, folders with name csint+AF8-00001f00 are created where the last 8 digits represent the unique ID of the module. Thus, every module enabled for integration has such a folder created in this area. In the respective module's folder, there will be a "config.dat" file, which contains info about whether the integration is enabled and if yes, what options are enabled (RCM or IR etc). You can access this file and parse the content to know if the module is enabled for integration or not. You can access/read files in this area of database using confStream with type as confSystem. For more info on this, refer to "Configuration file access" section in DXL Reference Manual. Hope this helps. Cheers, Sudarshan |
Re: How to check the module is under synergy control SudarshanRao - Thu Jun 10 04:13:17 EDT 2010 Don't know anything about Synergy but I do about config files. Presuming this post is correct, I believe you can access this file like this.
string GetSynergyConfigFile(Module mod)
{ // Get the name of the Synergy Configuration file for the given module,
// if it exists.
// Return null if it doesn't exist (module not configured for Synergy)
// Note: these config files are stored in a folder whose name has
// the unique ID of the module; NameFile thus contains a slash.
if (null mod) return("")
string NameFile = "csint_" (uniqueID(mod)) "/config.dat"
bool Exists = confFileExists(NameFile, confSystem)
print ">>GetSynergyConfigFile\t" (name(mod)) "\t" Exists "\t[" NameFile "]\n"
if (Exists)
then return(NameFile)
else return("")
} // end GetSynergyConfigFile()
void ReadSynergyConfigFile(Module mod)
{ // read and print the config file
string NameFile = GetSynergyConfigFile(mod)
if (!null NameFile)
{ ConfStream cs = confRead(NameFile, confSystem)
print "Contents of ConfFile '" NameFile "'\n"
while (true)
{ cs >> Line
if (end cs) break
print Line "\n"
}
close(cs)
}
} // end ReadSynergyConfigFile()
|